#pragma once

#include "DrawNode.h"

class TextNode : public DrawNode
{
private:
	char* string;
	FontSize size;
	RECT rect;
	XY rectSize;
public:
	TextNode()	{Type = TEXT;}
	void setSize(FontSize aSize)	{size = aSize;}

	void setData(char* aString, ColorPalette aColor, XY arectSize)	{string = aString; color = aColor; rectSize = arectSize;}
	FontSize getSize()	{return size;}
	char* getString()	{return string;}
	RECT getRect()	{rect.top = pos.y;	rect.bottom = rect.top+rectSize.y;	rect.left = pos.x;	rect.right = rect.left+rectSize.x;	return rect;}
};